package lgs.hm.homework.work2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Secretary {

	private String name="丽丽";
	private String like="特别漂亮";
	@Autowired
	private Driver husband;
	
	public Secretary() {}

	public Secretary(String name, String like) {
		super();
		this.name = name;
		this.like = like;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLike() {
		return like;
	}

	public void setLike(String like) {
		this.like = like;
	}


	public Driver getHusband() {
		return husband;
	}

	public void setHusband(Driver husband) {
		this.husband = husband;
	}

	@Override
	public String toString() {
		return "Secretary [name=" + name + ", like=" + like + ", husband=" + husband + "]";
	}
	
	
	
	
}
